package com.zx.role.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zx.role.domain.SysRole;
import com.zx.role.domain.SysUserRole;
import com.zx.role.service.SysUserRoleService;
import com.zx.role.mapper.SysUserRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_user_role(用户和角色关联表)】的数据库操作Service实现
* @createDate 2024-03-22 19:13:18
*/
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole>
    implements SysUserRoleService{
    @Resource
    SysUserRoleMapper sysUserRoleMapper;

    @Override
    public boolean deleteObject(SysUserRole sysUserRole) {
        return sysUserRoleMapper.deleteObject(sysUserRole);
    }

    @Override
    public boolean batchDelUserRole(SysRole sysRole) {
        return sysUserRoleMapper.batchDelUserRole(sysRole);
    }

    @Override
    public boolean insertObjectBach(List<SysUserRole> sysUserRoleList) {
        return sysUserRoleMapper.insertObjectBach(sysUserRoleList);
    }
}




